package com.system.mapper;

import com.system.po.Role;
import com.system.po.permission;
import com.system.po.role_permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    int insert(Role record);



    Role selectByPrimaryKey(Integer roleid);


    List<Role> findRoles();


    List<permission> Selectpermissions();


    int adddistriBution(@Param("list")List<role_permission> list);
}